package cnpm02.j2ee.group3.logic.dao.impl;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.Query;

import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Name;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractEntityDaoImpl;
import cnpm02.j2ee.group3.model.SoldTicket;

/**
 * Dao implementation for {@link SoldTicketDao}.
 * @author BINH
 * @version 1.0
 * */
@Stateless
@Name("soldTicketDao")
@AutoCreate
public class SoldTicketDaoImpl extends AbstractEntityDaoImpl<SoldTicket> implements
		SoldTicketDao {

	@SuppressWarnings("unchecked")
	public List<SoldTicket> selectAll() {
		Query query = getEntityManager().createQuery(SELECT_ALL_QUERY);
		return query.getResultList();
	}
	
	
}
